package com.caojing.syby.httputils;

import com.caojing.syby.bean.brand.BrandBean;
import com.caojing.syby.bean.home.HomeGvBean;
import com.caojing.syby.bean.home.HomeTodayBean;
import com.caojing.syby.bean.home.HomeVpBean;
import com.caojing.syby.bean.tenbuy.ShareGvBean;
import com.caojing.syby.config.UrlConfig;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.QueryMap;

/**
 * Created by CaoJing on 2016/10/4.
 */
/*retrofit访问网络第一步需要定义一个接口，
为了规范，小组成员把访问网络的接口都封装到此方便管理*/
public interface ITenYuanBuyService {
    /*首页viewpager*/
    @GET(UrlConfig.Path.HOME_VP)
    Call<HomeVpBean> getHomeVpBean();
    /*首页今日更新*/
    @GET(UrlConfig.Path.HOME_TODAY)
    Call<List<HomeTodayBean>> getHomeTodayBean();
    /*首页gridview*/
    @GET(UrlConfig.Path.HOME_GV)
    Call<HomeGvBean> getHomeGvBean(@QueryMap()HashMap<String,String> params);

    //品牌特卖
    @GET(UrlConfig.Path.BASE_BRAND_PATH_URL)
    Call<BrandBean> getBrandChild(@QueryMap() HashMap<String,String> params);

   //TODO:----------------------------------------第三部分——十元购--------------------------------------------------
      /*十元购gridview部分的*/
    @GET(UrlConfig.Path.HOME_GV)
    Call<ShareGvBean>getShareGvBean(@QueryMap()Map<String,String> params);











}
